package l2;

import java.util.Scanner;

//TIP To <b>Run</b> code, press <shortcut actionId="Run"/> or
// click the <icon src="AllIcons.Actions.Execute"/> icon in the gutter.
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        SeqList<Integer> seqList=new SeqList<Integer>();
        seqList.insert(0,10);
        seqList.insert(1,20);
        seqList.insert(2,30);
        System.out.println("顺序表元素");
        seqList.traverse();
        System.out.println("顺序表大小"+seqList.size());
        System.out.println("请输入要查找的元素");
        int e=sc.nextInt();
        System.out.println("第"+seqList.search(e)+"个元素是"+seqList.visit(seqList.search(e)));
        seqList.remove(1);
        System.out.println("删除第1个元素后");
        seqList.traverse();
        seqList.size();
    }
}